import request from '@/utils/request'

// 查询殡葬数据列表
export function listFuneral_record(query) {
  return request({
    url: '/report/funeral_record/list',
    method: 'get',
    params: query
  })
}

// 查询殡葬数据详细
export function getFuneral_record(id) {
  return request({
    url: '/report/funeral_record/' + id,
    method: 'get'
  })
}

// 新增殡葬数据
export function addFuneral_record(data) {
  return request({
    url: '/report/funeral_record',
    method: 'post',
    data: data
  })
}

// 修改殡葬数据
export function updateFuneral_record(data) {
  return request({
    url: '/report/funeral_record',
    method: 'put',
    data: data
  })
}

// 删除殡葬数据
export function delFuneral_record(id) {
  return request({
    url: '/report/funeral_record/' + id,
    method: 'delete'
  })
}
